package com.eamois.action.manual;

import java.util.Collection;

import com.eamois.action.BaseAction;
import com.eamois.domain.manual.WorkStepCols;
import com.eamois.domain.manual.WorkStepColsContext;
import com.eamois.service.manual.WorkStepColsContextService;
import com.eamois.util.ServiceFactory;

public class WorkStepColsContextAction extends BaseAction{
	private WorkStepColsContextService colsContextService;


	public WorkStepColsContextService getColsContextService() {
		return colsContextService;
	}

	public void setColsContextService(WorkStepColsContextService colsContextService) {
		this.colsContextService = colsContextService;
	}

	public WorkStepColsContextAction() {
		setColsContextService((WorkStepColsContextService) ServiceFactory.getInstance().getBean("workStepColsContextService"));
	}
	
	public Collection<WorkStepColsContext> findWorkStepColsContext(
			WorkStepCols workStepCols) {
		return this.getColsContextService().findWorkStepColsContext(workStepCols);
	}
	
	public void saveWorkStepColsContext(WorkStepColsContext colsContext) {
		this.getColsContextService().save(colsContext);
	}
	
	public void removeWorkStepColsContext(WorkStepColsContext colsContext) {
		this.getColsContextService().remove(colsContext);
	}
	
}
